//
//  CoverFlowViewController.h
//  KeYin
//
//  Created by Sean Chen on 5/28/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Three20/Three20.h"
#import "extThree20JSON/extThree20JSON.h"
#import "FlowCoverView.h"
#import "M13FileManager.h"
#import "ContentViewController.h"
#import "ProcessViewController.h"

@interface CoverFlowViewController : UIViewController <FlowCoverViewDelegate, UIAlertViewDelegate> {
    NSArray *periodicals;
    NSMutableArray *covers;
    UIImageView *splash;
    
    FlowCoverView *flowCoverView;
    UIActivityIndicatorView *spinner;
    ProcessViewController *processViewController;
    
    NSUInteger loadingCoverIndex;
    NSUInteger loadingPageIndex;
    NSUInteger selectedPeriodicalIndex;
}

@property (nonatomic, retain) NSArray *periodicals;
@property (nonatomic, retain) NSMutableArray *covers;
@property (nonatomic, retain) UIImageView *splash;
@property (nonatomic, retain) FlowCoverView *flowCoverView;
@property (nonatomic, retain) ProcessViewController *processViewController;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;

- (void)downloadCovers;
- (void)generateCovers;
- (void)readSelectedPeriodical;

@end
